#!/bin/bash
# @author: Tinhnv1@fpt.net
# clean cache files and folders older than 3 days
#

# cache folder
cache_dir=/data/www/public_html/beta.thethao.vnexpress.net/public/tin-tuc/

# delete cache files
find $cache_dir -type f -ctime +3 -delete 

# delete empty dirs
find $cache_dir -type d -empty -delete

# sync to front server